set(Pjt_name demo) 
cmake_minimum_required(VERSION 3.2) 
find_package(OpenCV REQUIRED)
find_package(PCL REQUIRED)
find_package(ecto_pcl REQUIRED)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -std=c++11 -W")
aux_source_directory(SOURCE_FILE .)

set(Eigen_include_DIR /usr/local/include/eigen3) #3.3.5
set(Eigen_lib_DIR /usr/local/lib)
add_definitions(-std=c++11)

# SET_TARGET_PROPERTIES(${Pjt_name} PROPERTIES VERSION 1.2 SOVERSION 1)        #设置动态库版本号

include_directories(${Pjt_name}
    ${Eigen_include_DIR} 
    /opt/ros/kinetic/include/opencv-3.3.1-dev/
    /usr/include/pcl-1.7
    /usr/include/vtk-6.2
    # /home/de/work/tensorflow #tensorflow 原有
    # /home/de/work/tensorflow/bazel-genfiles #bazel 编译的时候生成
)



link_directories(${Pjt_name}
    ${Eigen_lib_DIR} 
    /opt/ros/kinetic/lib
    /usr/lib/x86_64-linux-gnu

    # /home/de/work/tensorflow/bazel-bin/tensorflow #bazel 编译的时候生成
) 

add_definitions(-std=c++11)
# ADD_LIBRARY(tensorflowCCVisionLib SHARED ${Pjt_name})
add_executable(${Pjt_name} readPCD.cpp)
target_link_libraries(${Pjt_name} -lopencv_imgcodecs -lopencv_imgproc -lopencv_core -lpcl_visualization -lboost_system -lpcl_io
-lvtkRenderingFreeTypeOpenGL-6.2 -lvtkRenderingMatplotlib-6.2 -lvtkRenderingFreeTypeFontConfig-6.2 -lvtkInteractionStyle-6.2 
-lvtkRenderingOpenGL-6.2 -lvtkRenderingFreeType-6.2 -lvtkCommonCore-6.2 -lpcl_common)
# 安装编译完成后的安装默认路径
# install(TARGETS tensorflowCCVisionLib LIBRARY DESTINATION BuildLib)
